package com.katze.boot.common.domain;

/**
 * 全局常量
 */
public class GlobalConstant {
    public static final String UNDER_LINE = "_";
    // user缓存前缀
    public static final String USER_INFO_HASH_CACHE = "app.cache.user";

    // token缓存前缀
    public static final String ACCESS_TOKEN_HASH_CACHE_PREFIX = "app.access.token.";

    // 存储在线用户的 zset前缀
    public static final String ACTIVE_USERS_ZSET_CACHE = "app.cache.online.user";

    // 排序规则： descend 降序
    public static final String ORDER_DESC = "descend";
    // 排序规则： ascend 升序
    public static final String ORDER_ASC = "ascend";

    // 按钮
    public static final String TYPE_BUTTON = "1";
    // 菜单
    public static final String TYPE_MENU = "0";

    // 网络请求
    public static final String USER_AGENT = "user-agent";
    public static final String USER_AGENT_VALUE = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)";
    public static final String CONNECTION = "connection";
    public static final String CONNECTION_VALUE = "Keep-Alive";
    public static final String ACCEPT = "accept";
    public static final String UTF8 = "utf-8";
    public static final String ACCEPT_CHARSET = "Accept-Charset";
    public static final String CONTENT_TYPE = "ContentType";

    // 网络资源 Url
    //https://query.asilu.com/weather/weather?action=weather/weather/&id=101010100 15天天气预报
    public static final String MEIZU_WEATHER_URL = "http://aider.meizu.com/app/weather/listWeather";
    public static final String MRYW_TODAY_URL = "https://interface.meiriyiwen.com/article/today";
    public static final String MRYW_DAY_URL = "https://interface.meiriyiwen.com/article/day";
    public static final String TIME_MOVIE_HOT_URL = "https://api-m.mtime.cn/Showtime/LocationMovies.api";
    public static final String TIME_MOVIE_DETAIL_URL = "https://ticket-api-m.mtime.cn/movie/detail.api";
    public static final String TIME_MOVIE_COMING_URL = "https://api-m.mtime.cn/Movie/MovieComingNew.api";
    public static final String TIME_MOVIE_COMMENTS_URL = "https://ticket-api-m.mtime.cn/movie/hotComment.api";

//    https://api.asilu.com/bg/  Bing 壁纸获取
    //数据范围权限
    public static final int DATA_FILTER_ALL=0;
    public static final int DATA_FILTER_DEPT=1;
    public static final int DATA_FILTER_OWN=2;

}
